﻿using Abp.AutoMapper;
using GN.Pay.Application.Dto.Input;
using GN.Pay.Core.Values.TradeRefund;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.GatewayApp.Dto.Input
{
    /// <summary>
    /// 退款申请输入
    /// </summary>
    [AutoMap(typeof(TradeRefundApplyInfo))]
    public class RefundApplyInput : ServiceBaseInput
    {
        /// <summary>
        /// 申请单号
        /// </summary>
       // [Required]
      //  [StringLength(maximumLength: 32)]
        public string ApplyNo { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
      //  [Required]
      //  [StringLength(maximumLength: 64)]
        public string OrderNo { get; set; }

        /// <summary>
        /// 申请金额
        /// </summary>
       // [Range(0.01, (double)decimal.MaxValue, ErrorMessage = "申请金额必须大于零")]
        public decimal ApplyMoney { get; set; }       

        /// <summary>
        /// 原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 通知地址(Post)
        /// </summary>
       // [StringLength(maximumLength: 255)]
        public string NotifyUrl { get; set; }

        /// <summary>
        /// 扩展参数
        /// </summary>        
        public string ExtraParam { get; set; }
    }
}
